<nav>
      <?php include_partial('menu');?>     
</nav>
<article>
    <h1 id="tituloAtributo">Resumen Total</h1>
<table class="table">
  <thead>        
    <tr>
      <th></th> <th></th> <th></th>
    </tr>
    <tr>
      <th></th> <th></th> <th></th>
    </tr>
  </thead>
  <tbody>        
    <tr>
      <th>Id:</th>
      <td><?php echo $beca->getId() ?></td>
    </tr>
    <tr>
      <th>Nombre:</th>
      <td><?php echo $beca->getNombre() ?></td>
    </tr>
    <tr>
      <th>Logo:</th>
      <td><?php echo image_tag('/uploads/logos/'.$beca->getLogo(), 'id=img_logo', 'alt=logo'.$beca->getId()) ?></td>   
    </tr>
    <tr>
      <th><p>Descripcion:</p></th>
      <td><p><?php echo $beca->getDescripcion() ?></p></td>
    </tr>
    <tr>
      <th>Dirigido a:</th>
      <td><?php echo $beca->getDirigidoA() ?></td>
    </tr>
    <tr>
      <th><p>Requisitos:</p></th>
      <td><p id="info"><?php echo $beca->getRequisitos() ?></p></td>
    </tr>
    <tr>
      <th>Plazo:</th>
      <td><?php echo $beca->getPlazo() ?></td>
    </tr>
    <tr>
      <th>Fecha inicio:</th>
      <td><?php echo $beca->getFechaInicio() ?></td>
    </tr>
    <tr>
      <th>Fecha fin:</th>
      <td><?php echo $beca->getFechaFin() ?></td>
    </tr>
    <tr>
      <th>Entidad que convoca:</th>
      <td><?php echo $beca->getEntidad()->getNombre() ?></td>      
      <td>
          <form action="<?php echo url_for('becas/edit?id='.$beca->getId()) ?>" method="post">      
      <input type="submit" value="Editar" />      
      </form>
      </td>
    </tr>
  </tbody>
  <tfoot>
      <tr>
          <td colspan="3"></td>
      </tr>
  </tfoot>
</table>



<table>
  <tbody>         
    <?php foreach($beca->getAtributosAdicionalesBeca() as $atributo):?>    
    <tr>      
      <th><?php echo $atributo->getAtributoId();?></th>    
      <td><p id="info"><?php echo $atributo->getAtributoValor();?></p></td>      
      <td>
        <form action="<?php echo url_for('atributos/edit?beca_id='.$atributo->getBecaId().'&atributo_id='.$atributo->getAtributoId().'&nombre_beca='.$beca->getNombre())?>" method="post" />      
        <input type="submit" value="Editar"/>      
        </form>
      </td>
    </tr>    
    <?php endforeach;?>
  </tbody>
  <tfoot>
	  <tr>
      <th></th> <th></th> <th></th>
    </tr>
    <tr>
      <th></th> <th></th> <th></th>
    </tr>      
  </tfoot>
</table>    
</article>
